<ul>
	<?php foreach ($posts as $data):?>
	<li><?php for($i=0;$i<$data->deep;$i++) echo "&nbsp;&nbsp;&nbsp;&nbsp;"?><?php echo $data->cate_name;?><span class="right"><?php echo count($data->product);?></span></li>
	<?php endforeach;?>
</ul>